But the real problem with unit tests as I've discovered is that the type of changes that you tend to make as code evolves tend to break a constant percentage of your unit tests.
但我认为单元测试的真正问题在于人们改进代码的同时也会破坏同等数量的单元测试。
Prefer compact code and let the compiler infer the type for a constant or variable.
保持代码紧凑,然后让编译器推断变量跟常量的类型。
应用推荐